{% extends 'application.html' %}
{% block content %}
<div class="row">
    {% include '_nav.html' %}
    <div class="spna6"></div>
</div>
<div class="row">
    <div class="span8">
        <table class="table">
            <thead>
                <tr>
                    <th>#</th>
                    <th>修改分组</th>
                    <th>*</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>分组名</td>
                    <td><input type="text" id="level_name" value="{{level.name}}"></td>
                    <td>*</td>
                </tr>
                <tr>
                    <td>分组类型</td>
                    <td>
                        <select id="level_type">
                            <option value="1" {% if level.type == 1 %} selected="selected" {% endif %}>私有类型</option>
                            <option value="2" {% if level.type == 2 %} selected="selected" {% endif %}>公共类型</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>#</td>
                    <td><button class="btn" type="button" onclick="SaveLevel()">修改分组</button></td>
                    <td>*</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<script type="text/javascript" charset="utf-8">
    var _level_id = {{level.id}};
</script>
{% endblock %}
